package test.y2019.december;

/**
 * Created By  醉美柳舞之众星捧月
 *
 * @author song
 * @date 2019/12/2 16:07
 */
public class December2 {
    public static void main(String[] args) {
/*        long between = DateUtil.between(new Date(), new Timestamp(1575381274000L), DateUnit.MS);
        final String s = DateUtil.formatBetween(between, BetweenFormater.Level.SECOND);
        Console.error(s);

        long day = between / DateUnit.DAY.getMillis();
        long hour = between / DateUnit.HOUR.getMillis() - day * 24L;
        long minute = between / DateUnit.MINUTE.getMillis() - day * 24L * 60L - hour * 60L;
        long second = between / DateUnit.SECOND.getMillis() - ((day * 24L + hour) * 60L + minute) * 60L;

        Console.error("{}天{}小时{}分钟{}秒", day, hour, minute, second);


        String begin = "2019-12-07 09:27:00";
        String end = "2019-12-07 18:06:00";
        Date beginDate = DateUtil.parse(begin);
        Date endDate = DateUtil.parse(end);
        Console.error(beginDate);
        Console.error(endDate);

        long between1 = DateUtil.between(beginDate, endDate, DateUnit.MS);
        final String s1 = DateUtil.formatBetween(between1, BetweenFormater.Level.SECOND);
        Console.error(s1);*/
    }
}
